package edu.sju.chenshu.system.service.question;

import edu.sju.chenshu.common.core.domain.Result;
import edu.sju.chenshu.common.core.domain.TableDataInfo;
import edu.sju.chenshu.common.core.service.BaseService;
import edu.sju.chenshu.system.domain.question.dto.QuestionEditDTO;
import edu.sju.chenshu.system.domain.question.dto.QuestionQueryDTO;
import edu.sju.chenshu.system.domain.question.dto.QuestionAddDTO;
import edu.sju.chenshu.system.domain.question.vo.QuestionDetailVO;

public interface IQuestionService extends BaseService {
    TableDataInfo list(QuestionQueryDTO questionQueryDTO);

    Result<Void> add(QuestionAddDTO questionSaveDTO);

    QuestionDetailVO detail(Long questionId);

    Result<Void> edit(QuestionEditDTO questionEditDTO);

    Result<Void> delete(Long questionId);
}
